package publics.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="z_loan_type")
public class LoanType {//企业贷款种类
	
	private Integer id;// ID    int not null
	private String name;//贷款种类名称    varchar(10) not null
	private Integer num;// 贷款种类代码     int not null
	private String remark;  //备注说明 255

	
	
	@Id
	@GeneratedValue
	@Column(name="Loa_type_id")
	public Integer getId() {
		return id;
	}
	@Column(name="Loa_type_name")
	public String getName() {
		return name;
	}
	@Column(name="Loa_type_num")
	public Integer getNum() {
		return num;
	}
	@Column(name="Loa_type_remark")
	public String getRemark() {
		return remark;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "LoanType [id=" + id + ", name=" + name + ", num=" + num
				+ ", remark=" + remark + "]";
	}
	
	
}
